﻿		public void Remove({ClassName}Data OwnData)	//DataAccessRemoveMethod.tpl
        {
			DateTime startTime = DateTime.Now;
			try
			{
				String Query = "Delete from {TableName} where {WhereCondition}";
				DbParameter[] parameters = new DbParameter[{ParamsCount}];
				for (int i = 0; i < {ParamsCount}; i++)
					parameters[i] = connector.CreateParameter();
{PropertiesNames}
				connector.ExecuteNonQuery(Query, parameters);
				logger.Info("Method {ClassName}DAL.Remove({ClassName}Data OwnData) took " + (DateTime.Now - startTime).Milliseconds + "ms.");
		    }
		    catch(Exception e)
		    {
				logger.Error("Error executing method {ClassName}DAL.Remove({ClassName}Data OwnData). Table [{TableName}]", e);
				throw e;
		    }
        }
   
